package mapper;

import entity.Users;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;
import java.util.Map;

/**
 * @Author Administrator
 * @create 2020.06.18 下午 12:08
 */
public interface UsersMapper {

    List<Users> selectByMap(Map<String, Object> params);


    int insert(Users users);
@Select("select * from users where id = #{id}")
    Users selectById(Integer id);

    int update(Users users);

    int delete(Integer id);

    Users selectByAccount(String account);
@Update("update users set status=#{status} where id=#{id}")
    int updateStatus(Users user);

    int updateTime(Users user);

    int updatePassword(Users user);
@Select("select * from users")
List<Users> selectAll();
}
